<template>
	<view class="flex_ZC">
		<!-- #ifdef H5 -->
		<uNavbar :title="title"  > </uNavbar>
		<!-- #endif -->
		
		<view class="qualification flex_Z">
			<text class="f32 c3 fw5 mart30">商家资质信息公开</text>
			<view class="zizhi">
				<image :src="image" @tap.stop="preview(image)" mode="aspectFill"></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				image:"",
				isYmType:false,
				title:"食品资质信息"
			}
		},
		onLoad(e) {
			
			
			if(uni.getStorageSync("business_license_watermark")){
				this.image=uni.getStorageSync("business_license_watermark")
			}
			if(e.type == 'true'){
				this.isYmType = e.type
				this.title = '营业许可证'
			}
			// #ifdef MP-ALIPAY
			my.setNavigationBar({
			  title: this.title
			})
			// #endif
		},
		methods: {
preview(url) {

				uni.previewImage({
					urls: [url]
				})
			},
		},
	}
</script>

<style scoped lang="scss">
	.qualification{
		width: 690rpx;
		height: 580rpx;
		background: #FFFFFF;
		border-radius: 24rpx 24rpx 24rpx 24rpx;
		margin-top: 30rpx;
		padding: 0 24rpx;
	}
	.mart30{
		margin: 30rpx 0;
	}
	.zizhi{
		width: 592rpx;
		height: 422rpx;
		margin: 0 auto;
		>image{
			width: 592rpx;
			height: 422rpx;
		}
	}

</style>